from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
import time


class OledStr:
    def __init__(self, i2c):
        self.i2c = i2c
        self.oled = SSD1306_I2C(128, 64, self.i2c)

    def clear_oled(self):
        self.oled.fill(0)

    def fill_text(self, text: str, start_col, start_row):
        self.oled.text(text, start_col, start_row)

    def show_text(self):
        self.oled.show()


if __name__ == "__main__":
    # 显示内容
    pass


